<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>JS1.html</title>

		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="this is my page">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">

		<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
		<script type="text/javascript">
//重复执行
var timeInterval = setInterval("Count()", 1000);
//只执行一次
var timeTimeOut = setTimeout("Count()", 1000);
function Count() {

	var time = new Date();
	document.getElementById("clock").innerHTML = time.toLocaleTimeString();
}

function Stop() {
	clearInterval(timeInterval);
}

</script>
	</head>

	<body>
		<font color="red" id="clock">0</font>
		<input type="button" value="暂停" onclick="Stop()" />
	</body>
</html>
